@import './baguetteBox.min.css';
@import '~video-react/styles/scss/video-react';
a {
  outline: none;
}

.pictures {
  display: flex;
  flex-wrap: wrap;
  border: 2.5px solid #fff;
  background: #fff;
  .img-box {
    width: 95px;
    height: 95px;
    border: 2.5px solid #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center; // border: 1px solid;
  }
  .more {
    background-color: #666619;
    cursor: pointer;
    label {
      color: #fff;
      margin-left: 5px;
    }
  }
}

.pictureLists {
  // height: 250px;
  display: flex;
  flex-direction: column;
  .title {
    background: #eee;
    height: 35px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    h3 {
      font-weight: normal;
    }
    .tools {
      display: flex;
      align-items: center;
      position: relative;
      cursor: pointer; // margin-right: 200px;
      label {
        cursor: pointer;
      }
      .add {
        margin-left: 10px; // height: 24px;
        display: flex;
        align-items: center;
        background: linear-gradient(#fff, #eee); // mix-blend-mode: darken;
        // border-radius: 12px;
        // padding: 0 10px;
        // img {
        //   margin-right: 10px;
        // }
        // span {
        //   color: #0041b8;
        // }
      }
      .closer {
        margin-left: 100px;
        color: #000;
        &::after {
          content: '✖';
          position: absolute;
          right: 3px;
          top: 3px;
        }
      }
    }
  }
  .content {
    flex-grow: 1;
    display: flex; // background-color: #eee;
    padding: 10px;
    flex-wrap: wrap;
    background: #eee;
    height: 270px;
    .lists {
      height: 255px;
      overflow: auto;
      >div {
        width: 100%;
      }
    }
    .scroll-content {
      display: flex;
      flex-wrap: wrap;
    }
    .picture-list {
      height: 200px;
      width: 500px; // align-items: flex-start;
      flex-grow: 1;
      margin-bottom: 10px;
      .scroll-content {
        display: flex;
        flex-wrap: wrap;
      }
      .img-box {
        width: 90px;
        height: 90px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 2.5px solid #fff;
        position: relative;
        .icon-xiugai {
          position: absolute;
          top: 0;
          right: 0;
          display: none;
        }
        &:hover {
          .icon-xiugai {
            display: block;
          }
        }
      }
      .more {
        background-color: #666619;
        cursor: pointer;
        label {
          color: #fff;
          margin-left: 5px;
        }
      }
    }
  }
}

.add-logger {
  form {
    .log-str {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      .react-datepicker__input-container {
        input {
          width: 90px;
        }
      }
    }
  }
}

.add-logger,
.add-video-logger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  form {
    .log-str {
      padding: 15px;
      padding-bottom: 0;
      .react-datepicker__input-container {
        input {
          width: 90px;
        }
      }
    }
    .input-group {
      display: flex;
      margin-bottom: 10px;
      align-items: flex-start;
      label {
        text-align: right;
      }
      #logger {
        width: 570px;
        resize: none;
        height: 55px;
      }
    }
    .submit {
      display: flex;
      justify-content: center;
      align-items: center;
      padding-left: 10px;
      padding-right: 10px;
      margin: 15px 0;
      position: relative;
      input {
        color: #fff;
        width: 88px;
        height: 30px;
        background-image: linear-gradient(to top, #3478f5, #6fa2ff);
        box-shadow: -0.9px 0.5px 2px 0 rgba(15, 68, 165, 0.35);
        border-radius: 5px;
        cursor: pointer;
        margin: 0 5px;
      }
      .delete {
        color: #3478f5;
        position: absolute;
        right: 20px;
      }
    }
  }
  .logger-img,
  .logger-video {
    // width:290px;
    // height:206px;
    height: 510px;
    display: flex;
    flex-wrap: wrap;
    .scroll-content {
      display: flex;
      flex-wrap: wrap;
    }
    .preview {
      // width:100%;
      // height:0;
      // padding-bottom: 100%;
      // overflow:hidden;
      background-position: center center;
      background-repeat: no-repeat;
      background-size: cover;
    }
    input {
      width: 270px;
      height: 30px;
      margin: 15px;
    }
    .logger-box {
      width: 270px;
      height: 180px;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      border: none;
      margin: 15px;
      margin-bottom: 0;
      position: relative;
      background-color: #d6d6d6;
      cursor: pointer;
      .trash {
        position: absolute;
        right: 0;
        width: 270px;
        padding: 5px;
        padding-top: 10px;
        text-align: right;
        bottom: 20px; // color: #ff2d2d;
        background-color: rgba(00, 00, 00, 0.3);
        display: none; // &::after {
        //   content: '✖';
        // }
      }
      &:hover {
        .trash {
          display: block;
        }
      }
      .drop-zone {
        width: 70px;
        height: 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        label {
          margin-top: 6px;
          cursor: pointer;
        }
      }
    }
  }
}

.add-logger {
  width: 900px;
}

.add-video-logger {
  width: 640px;
}

.lists {
  display: flex;
  width: 100%;
  >section {
    width: 100%;
    .scroll-content {
      >div {
        width: 100%;
        .listScroll {
          display: flex;
          flex-wrap: wrap;
        }
      }
    }
  }
  .listItems {
    background: #fff;
    margin: 5px;
    width: 290px;
    position: relative;
    height: 75px;
    padding: 10px;
    &:hover {
      .relative {
        display: block;
      }
    }
    .delete {
      position: absolute;
      width: 300px;
      left: 0px;
      bottom: 0px;
      height: 20px;
      background-color: rgba(72, 144, 251, 0.3);
      a::after {
        content: '✖';
        position: absolute;
        right: 4px;
        bottom: 0px;
        cursor: pointer;
      }
      a:hover {
        &:after {
          color: #ff0000;
        }
      }
    }
    .dragDrop {
      .dragDrop-content {
        padding: 0;
        background-color: #eeeeee;
      }
    }
    .item {
      display: flex;
      justify-content: space-between;
    }
    td {
      padding: 0 !important;
    }
    .date {
      font-weight: bold;
      img {
        margin-left: 5px;
        cursor: pointer;
      }
    }
    .log-content {
      // word-wrap: break-word;
      //  -webkit-box-orient: vertical !important;
      width: 225px; // // height: 38px;
      // overflow: hidden;
      // text-overflow: ellipsis;
      // display: -webkit-box;
      // -webkit-line-clamp: 2;
      // word-break: break-all;
      // word-wrap: break-word;
      // 改进
      max-height: 40px;
      line-height: 20px;
      position: relative; // ...这里添加relative
      /*多行文本省略*/
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      display: -moz-box;
      -moz-line-clamp: 2 !important;
      -moz-box-orient: vertical;
      word-wrap: break-word;
      word-break: break-all;
    }
    .after:after {
      // background: linear-gradient(to right, rgba(255, 255, 255, 0), #FFFFFF 50%) repeat scroll 0 0 rgba(0, 0, 0, 0);
      bottom: 0;
      content: "...";
      padding: 0 5px 1px 2px;
      position: absolute;
      right: 0;
      background-color: #fff;
    }
    .imgs {
      background-color: #72b2d6;
      width: 46px;
      height: 46px;
      border-radius: 23px;
      display: flex;
      flex-direction: column; // justify-content: center;
      align-items: center;
      cursor: pointer;
      span {
        color: #fff;
        margin: 2px 0;
      } // justify-content: center;
    }
  }
}

.react-confirm-alert-button-group>button {
  background-color: #3b6f50 !important;
  color: #fff !important;
}